<%@page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<title>${APP_NAME}</title>
<%@ include file="/commons/includejs.jsp"%>
<script type="text/javascript">
$(function(){
	DWZ.init("resources/dwz/dwz.frag.xml", {
		loginUrl:"login_dialog", loginTitle:"登录",	// 弹出登录对话框
//		loginUrl:"login.html",	// 跳到登录页面
		statusCode:{ok:200, error:300, timeout:301}, //【可选】
//		pageInfo:{pageNum:"page.pageNo", numPerPage:"page.pageSize", orderField:"page.orderBy", orderDirection:"page.order"}, //【可选】
		pageInfo:{pageNum:"pageNo", numPerPage:"numPerPage", orderField:"orderBy", orderDirection:"order"}, //【可选】
		debug:true,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"resources/dwz/themes"});
		}
	});
	
});

function logoutConfirm(url){
	alertMsg.confirm("你确定退出！", {
		okCall: function(){			
			 window.location.href=url;			
		}
	});
}

function logoutAjaxDone(json){
    if (json.statusCode == DWZ.statusCode.ok){
    	 alertMsg.logoutconfirm(json.message, {
             okCall: function(){
            	 window.location.href="login";            
             }
			}); 	
    }
}

</script>
<style>
<!--
span.inputInfo{float:left;min-width:200px;}
-->
</style>
</head>
<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="http://j-ui.com">标志</a>
				<ul class="nav">
					<li id="switchEnvBox"><a href="javascript:">（<span>北京</span>）切换城市</a>
						<ul>
							<li><a href="sidebar_1.html">北京</a></li>
							<li><a href="sidebar_2.html">上海</a></li>
							<li><a href="sidebar_2.html">南京</a></li>
						</ul>
					</li>
					<li><a href="${ctx}/changepassword" target="dialog" title="修改密码" width="550" height="165">修改密码</a></li>
					<li><a href="javascript:;" onclick="logoutConfirm('${ctx}/logout')">退出</a></li>
				</ul>
				<ul class="themeList" id="themeList">
					<li theme="default"><div class="selected">蓝色</div></li>
					<li theme="green"><div>绿色</div></li>
					<li theme="purple"><div>紫色</div></li>
					<li theme="silver"><div>银色</div></li>
					<li theme="azure"><div>天蓝</div></li>
				</ul>
			</div>
		</div>
		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>

				<div class="accordion" fillSpace="sidebar">
			
					<c:forEach var="item" items="${list}" varStatus="menu">
						<div class="accordionHeader">
							<h2><span>Folder</span>${item.name}</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
								${item.treestring}
							</ul>
						</div>
					</c:forEach>
				</div>
			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div class="pageFormContent" layoutH="80" style="margin-right:230px">	
								<div class="divider"></div>
								<h2>常见问题及解决:</h2>
						</div>
					</div>
					
				</div>
			</div>
		</div>

	</div>

	<div id="footer">Copyright &copy; 2010 <a href="demo_page2.html" target="dialog">DWZ团队</a> Tel：010-52897073</div>
</body>
</html>